summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Chris Hofstaedtler [Sat, 19 Nov 2022 15:48:44 +0000 (15:48 +0000)]
Merge util-linux (2.38.1-3) import into refs/heads/workingbranch
Karel Zak [Tue, 19 Apr 2022 10:28:09 +0000 (12:28 +0200)]
[PATCH 2/2] lib/pty: minor cleanups
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name PATCH-2-2-lib-pty-minor-cleanups.patch
наб [Tue, 12 Apr 2022 14:25:14 +0000 (16:25 +0200)]
[PATCH 1/2] lib/pty: Put master PTY into non-blocking mode and buffer its output to avoid deadlock
If we filled the script->child buffer before the child had a chance to read any
input, we'd sleep forever in write_all(pty->master), and the child would sleep
forever in write(1<pty->slave>)
By putting the master PTY in non-blocking mode, we can poll(pty->master,
POLLOUT) and keep supplying more data as the child reads from the buffer
Fixes Debian bug #
1003095
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name PATCH-1-2-lib-pty-Put-master-PTY-into-non-blocking-mode-a.patch
Karel Zak [Mon, 5 Sep 2022 07:14:45 +0000 (09:14 +0200)]
[PATCH] rfkill: (man) List options for supported device types
Fixes: https://github.com/util-linux/util-linux/issues/1790
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name PATCH-rfkill-man-List-options-for-supported-device-types.patch
Thomas Weißschuh [Thu, 10 Nov 2022 18:48:20 +0000 (19:48 +0100)]
[PATCH 26/26] libblkid: iso9660: allocate enough space for UTF16 decoding
When merge_utf16be_ascii() encounters high-codepoint surrogate pairs it
emits four bytes of output for one byte of ascii input.
In addition with the remaining ascii characters from the second loop we
need up to 5 * sizeof(input) / 2 bytes as output buffer.
As we decode up to 128 ascii characters with merge_utf16be_ascii() we
need 320 bytes of buffer available.
Furthermore adapt merge_utf16be_ascii() to not write paste the output
buffer end.
Fix OSS-Fuzz issue 53149 ( #1887 )
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0026-libblkid-iso9660-allocate-enough-space-for-UTF16-dec.patch
Thomas Weißschuh [Thu, 10 Nov 2022 17:35:00 +0000 (18:35 +0100)]
[PATCH 25/26] libblkid: ntfs: avoid UB in signed shift
Fix OSS-Fuzz issue 53142 ( #1886 )
Fix OSS-Fuzz issue 53160 ( #1888 )
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0025-libblkid-ntfs-avoid-UB-in-signed-shift.patch
zhanchengbin [Mon, 10 Oct 2022 09:23:24 +0000 (17:23 +0800)]
[PATCH 24/24] fsck: Processes may kill other processes.
A error in disk-utils/fsck.c, if run the fsck -N command, processes
don't execute, just show what would be done. However, the pid whose
value is -1 is added to the instance_list list in the execute
function,if the kill_all function is called later, kill(-1, signum)
is executed, Signals are sent to all processes except the number one
process and itself. Other processes will be killed if they use the
default signal processing function.
Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0024-fsck-Processes-may-kill-other-processes.patch
ThomasKaiser [Fri, 30 Sep 2022 08:53:25 +0000 (10:53 +0200)]
[PATCH 23/24] lscpu: Add Kryo 3XX Gold core
[kzak@redhat.com: - update patch to use '-' between words in CPU name]
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0023-lscpu-Add-Kryo-3XX-Gold-core.patch
Jeremy Linton [Thu, 1 Sep 2022 21:52:30 +0000 (16:52 -0500)]
[PATCH 22/24] lscpu: Even more Arm part numbers
Arm has published further MIDR/part numbers on
https://developer.arm.com/ip-products/processors/cortex-a.
Some of the new ones have already been merged, so lets
fill in the gaps with A34, A65AE and X1C.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0022-lscpu-Even-more-Arm-part-numbers.patch
ThomasKaiser [Mon, 18 Jul 2022 10:56:44 +0000 (12:56 +0200)]
[PATCH 21/24] Remove closing braces in Apple cores names
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0021-Remove-closing-braces-in-Apple-cores-names.patch
Karel Zak [Mon, 18 Jul 2022 10:37:25 +0000 (12:37 +0200)]
[PATCH 20/24] lscpu: (arm) don't use space in names
It's seems better to be consistent and use the same convention for all
the names.
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0020-lscpu-arm-don-t-use-space-in-names.patch
James Calligeros [Sat, 9 Jul 2022 05:08:41 +0000 (15:08 +1000)]
[PATCH 19/24] lscpu: add missing Apple parts
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0019-lscpu-add-missing-Apple-parts.patch
James Calligeros [Sat, 9 Jul 2022 04:52:35 +0000 (14:52 +1000)]
[PATCH 18/24] lscpu: make Apple part names human-friendly
The internal Apple model numbers for the SoCs are somewhat
confusing given that they are mostly similar and differ by only
one or two digits. Instead, use the public nomenclature for these
chips to avoid ambiguity and beautify the output.
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0018-lscpu-make-Apple-part-names-human-friendly.patch
Thomas Kaiser [Fri, 1 Jul 2022 12:16:49 +0000 (14:16 +0200)]
[PATCH 17/24] Fix formatting.
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0017-Fix-formatting.patch
ThomasKaiser [Fri, 1 Jul 2022 09:24:04 +0000 (11:24 +0200)]
[PATCH 16/24] Adding Apple core names, distinguish by SoC/SiP name
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0016-Adding-Apple-core-names-distinguish-by-SoC-SiP-name.patch
ThomasKaiser [Thu, 30 Jun 2022 05:32:40 +0000 (07:32 +0200)]
[PATCH 15/24] Add Makalu/Makalu-ELP (A715/X3)
Also fix names of A510/A710 cores
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0015-Add-Makalu-Makalu-ELP-A715-X3.patch
Jeremy Linton [Wed, 4 May 2022 17:30:34 +0000 (12:30 -0500)]
[PATCH 14/24] lscpu: Add Snapdragon parts
QC updated the kernel cputype.h to include the Kyro 4xx and 3xx Silver
part numbers's. Lets sync that commit and naming.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0014-lscpu-Add-Snapdragon-parts.patch
Karel Zak [Thu, 11 Aug 2022 11:14:18 +0000 (13:14 +0200)]
[PATCH 13/24] sfdisk: inform about failed fsync() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0013-sfdisk-inform-about-failed-fsync-coverity-scan.patch
Karel Zak [Thu, 11 Aug 2022 11:09:05 +0000 (13:09 +0200)]
[PATCH 12/24] libfdisk: (gpt) don't ignore fsync() errors
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0012-libfdisk-gpt-don-t-ignore-fsync-errors.patch
Karel Zak [Thu, 11 Aug 2022 11:04:58 +0000 (13:04 +0200)]
[PATCH 11/24] sfdisk: improve code readability for coverity scan
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0011-sfdisk-improve-code-readability-for-coverity-scan.patch
Karel Zak [Mon, 11 Jul 2022 12:02:30 +0000 (14:02 +0200)]
[PATCH 10/24] libfdisk: make scripts portable between different sector sizes
Fixes: https://github.com/util-linux/util-linux/issues/1744
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0010-libfdisk-make-scripts-portable-between-different-sec.patch
Karel Zak [Thu, 10 Nov 2022 08:24:23 +0000 (09:24 +0100)]
[PATCH 09/24] fdisk: make it more obvious that DOS means MBR
Fixes: https://github.com/util-linux/util-linux/issues/1890
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0009-fdisk-make-it-more-obvious-that-DOS-means-MBR.patch
Karel Zak [Mon, 24 Oct 2022 07:57:07 +0000 (09:57 +0200)]
[PATCH 08/24] fdisk: fix --output option parsing
Fixes: https://github.com/util-linux/util-linux/issues/1859
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
1022249
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0008-fdisk-fix-output-option-parsing.patch
Chris Down [Wed, 26 Oct 2022 14:47:36 +0000 (15:47 +0100)]
[PATCH 07/24] kill: Support mandating the presence of a userspace signal handler
In production we've had several incidents over the years where a process
has a signal handler registered for SIGHUP or one of the SIGUSR signals
which can be used to signal a request to reload configs, rotate log
files, and the like. While this may seem harmless enough, what we've
seen happen repeatedly is something like the following:
1. A process is using SIGHUP/SIGUSR[12] to request some
application-handled state change -- reloading configs, rotating a log
file, etc;
2. This kind of request is deprecated and removed, so the signal handler
is removed. However, a site where the signal might be sent from is
missed (often logrotate or a service manager);
3. Because the default disposition of these signals is terminal, sooner
or later these applications are going to be sent SIGHUP or similar
and end up unexpectedly killed.
I know for a fact that we're not the only organistion experiencing this:
in general, signal use is pretty tricky to reason about and safely
remove because of the fairly aggressive SIG_DFL behaviour for some
common signals, especially for SIGHUP which has a particularly ambiguous
meaning. Especially in a large, highly interconnected codebase,
reasoning about signal interactions between system configuration and
applications can be highly complex, and it's inevitable that on occasion
a callsite will be missed.
In some cases the right call to avoid this will be to migrate services
towards other forms of IPC for this purpose, but inevitably there will
be some services which must continue using signals, so we need a safe
way to support them.
This patch adds support for the -r/--require-handler flag, which checks
if a userspace handler is present for the signal being sent. If it is
not, the process will be skipped.
With this flag we can enforce that all SIGHUP reload cases and SIGUSR
equivalents use --require-handler. This effectively mitigates the case
we've seen time and time again where SIGHUP is used to rotate log files
or reload configs, but the sending site is mistakenly left present after
the removal of signal handler, resulting in unintended termination of
the process.
Signed-off-by: Chris Down <chris@chrisdown.name>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0007-kill-Support-mandating-the-presence-of-a-userspace-s.patch
Karel Zak [Thu, 11 Aug 2022 08:56:02 +0000 (10:56 +0200)]
[PATCH 06/24] lib/procfs: add function to parse /proc/#/stat
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0006-lib-procfs-add-function-to-parse-proc-stat.patch
Karel Zak [Mon, 19 Sep 2022 12:23:25 +0000 (14:23 +0200)]
[PATCH 05/24] lsblk: fix endless loop if device specified more than once
Fixes: https://github.com/util-linux/util-linux/issues/1814
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0005-lsblk-fix-endless-loop-if-device-specified-more-than.patch
Michael Trapp [Tue, 2 Aug 2022 12:16:43 +0000 (14:16 +0200)]
[PATCH 04/24] libuuid: check clock value from LIBUUID_CLOCK_FILE
The clock value from the LIBUUID_CLOCK_FILE must be checked in
case of an update of libuuid. If clock==CLOCK_SEQ_CONT it must
be set to a new value.
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0004-libuuid-check-clock-value-from-LIBUUID_CLOCK_FILE.patch
Karel Zak [Mon, 10 Oct 2022 07:37:51 +0000 (09:37 +0200)]
[PATCH 03/24] uuidd: fix random UUIDs
Commit
f27876f introduces copy & past bug and replaces
__uuid_generate_random() with __uuid_generate_time().
Fixes: https://github.com/util-linux/util-linux/issues/1837
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0003-uuidd-fix-random-UUIDs.patch
Michael Trapp [Mon, 20 Jun 2022 15:10:36 +0000 (17:10 +0200)]
[PATCH 02/24] libuuid: Implement continuous clock handling for time based UUIDs
In a uuidd setup, the daemon is a singleton and can maintain it's own
resources for time based UUID generation. This requires a dedicated
'clock sequence range' but does not need any further lock/update of
the LIBUUID_CLOCK_FILE from uuidd. The range of available clock values
is extended by a continuous handling of the clock updates - instead of
updating the value to the current timestamp, it is incremented by
the number of requested UUIDs.
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0002-libuuid-Implement-continuous-clock-handling-for-time.patch
Petr Štetiar [Thu, 22 Sep 2022 09:49:13 +0000 (11:49 +0200)]
[PATCH 01/24] lib/path: ul_path_cpuparse: fix parsing of empty sysfs files
Kernel 5.15 returns empty content for topology/thread_siblings on
aarch64 platform, which in conjunction of uninitialized `buf` memory
buffer results in the garbage:
(gdb) p buf
$14 = " @\377\367\177\000\000\000\275\000\347j\032\236"
This garbage is then being later consumed by underlying helper functions
like for example cpumask_parse() and this leads to the following crash
later:
in __libc_free (p=0x7ff7f67c00) at src/malloc/mallocng/free.c:105
in free (p=<optimized out>) at src/malloc/free.c:5
in add_cpuset_to_array (setsize=<optimized out>, set=<optimized out>, items=<optimized out>, ary=<optimized out>) at ../sys-utils/lscpu-topology.c:29
in cputype_read_topology (cxt=cxt@entry=0x7ff7fffe70, ct=0x4298a0) at ../sys-utils/lscpu-topology.c:153
in lscpu_read_topology (cxt=cxt@entry=0x7ff7fffe70) at ../sys-utils/lscpu-topology.c:629
in main (argc=1, argv=0x7ffffffdb8) at ../sys-utils/lscpu.c:1341
It looks like the problem is that current logic expects fgets() to set
errno on failure, but fgets() is not documented to do so and and neither
glibc nor musl set errno. So if errno was set to 0 before fgets() call,
the failure from fgets() is ignored and then invalid buffer is being
parsed.
Fixes: #1810
Suggested-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0001-lib-path-ul_path_cpuparse-fix-parsing-of-empty-sysfs.patch
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager
Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin
Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed
sha256 cannot be initialized on some archs / buildds.
Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)]
Use non-deprecated chown syntax
Closes: #1007139
Gbp-Pq: Topic debian
Gbp-Pq: Name chown-non-deprecated.patch
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests
Enable verbose tests and print content of failing tests output file.
Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system
Debian BTS #913049
Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch
Chris Hofstaedtler [Sat, 19 Nov 2022 15:48:44 +0000 (15:48 +0000)]
util-linux (2.38.1-3) unstable; urgency=medium
* Apply "rfkill: (man) List options for supported device types"
(Closes: #
1019007)
* Apply "lib/pty: Put master PTY into non-blocking mode and buffer its output to avoid deadlock"
(Closes: #
1003095)
* Gift /var/lib/libuuid to uuid-runtime. uuidd should be its only user, and
this should avoid piuparts errors.
* Remove pre-stable NEWS entries
[dgit import unpatched util-linux 2.38.1-3]
Chris Hofstaedtler [Sat, 19 Nov 2022 15:48:44 +0000 (15:48 +0000)]
Import util-linux_2.38.1-3.debian.tar.xz
[dgit import tarball util-linux 2.38.1-3 util-linux_2.38.1-3.debian.tar.xz]
Chris Hofstaedtler [Wed, 16 Nov 2022 10:32:57 +0000 (10:32 +0000)]
Merge util-linux (2.38.1-2) import into refs/heads/workingbranch
Thomas Weißschuh [Thu, 10 Nov 2022 18:48:20 +0000 (19:48 +0100)]
[PATCH 26/26] libblkid: iso9660: allocate enough space for UTF16 decoding
When merge_utf16be_ascii() encounters high-codepoint surrogate pairs it
emits four bytes of output for one byte of ascii input.
In addition with the remaining ascii characters from the second loop we
need up to 5 * sizeof(input) / 2 bytes as output buffer.
As we decode up to 128 ascii characters with merge_utf16be_ascii() we
need 320 bytes of buffer available.
Furthermore adapt merge_utf16be_ascii() to not write paste the output
buffer end.
Fix OSS-Fuzz issue 53149 ( #1887 )
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0026-libblkid-iso9660-allocate-enough-space-for-UTF16-dec.patch
Thomas Weißschuh [Thu, 10 Nov 2022 17:35:00 +0000 (18:35 +0100)]
[PATCH 25/26] libblkid: ntfs: avoid UB in signed shift
Fix OSS-Fuzz issue 53142 ( #1886 )
Fix OSS-Fuzz issue 53160 ( #1888 )
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0025-libblkid-ntfs-avoid-UB-in-signed-shift.patch
zhanchengbin [Mon, 10 Oct 2022 09:23:24 +0000 (17:23 +0800)]
[PATCH 24/24] fsck: Processes may kill other processes.
A error in disk-utils/fsck.c, if run the fsck -N command, processes
don't execute, just show what would be done. However, the pid whose
value is -1 is added to the instance_list list in the execute
function,if the kill_all function is called later, kill(-1, signum)
is executed, Signals are sent to all processes except the number one
process and itself. Other processes will be killed if they use the
default signal processing function.
Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0024-fsck-Processes-may-kill-other-processes.patch
ThomasKaiser [Fri, 30 Sep 2022 08:53:25 +0000 (10:53 +0200)]
[PATCH 23/24] lscpu: Add Kryo 3XX Gold core
[kzak@redhat.com: - update patch to use '-' between words in CPU name]
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0023-lscpu-Add-Kryo-3XX-Gold-core.patch
Jeremy Linton [Thu, 1 Sep 2022 21:52:30 +0000 (16:52 -0500)]
[PATCH 22/24] lscpu: Even more Arm part numbers
Arm has published further MIDR/part numbers on
https://developer.arm.com/ip-products/processors/cortex-a.
Some of the new ones have already been merged, so lets
fill in the gaps with A34, A65AE and X1C.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0022-lscpu-Even-more-Arm-part-numbers.patch
ThomasKaiser [Mon, 18 Jul 2022 10:56:44 +0000 (12:56 +0200)]
[PATCH 21/24] Remove closing braces in Apple cores names
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0021-Remove-closing-braces-in-Apple-cores-names.patch
Karel Zak [Mon, 18 Jul 2022 10:37:25 +0000 (12:37 +0200)]
[PATCH 20/24] lscpu: (arm) don't use space in names
It's seems better to be consistent and use the same convention for all
the names.
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0020-lscpu-arm-don-t-use-space-in-names.patch
James Calligeros [Sat, 9 Jul 2022 05:08:41 +0000 (15:08 +1000)]
[PATCH 19/24] lscpu: add missing Apple parts
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0019-lscpu-add-missing-Apple-parts.patch
James Calligeros [Sat, 9 Jul 2022 04:52:35 +0000 (14:52 +1000)]
[PATCH 18/24] lscpu: make Apple part names human-friendly
The internal Apple model numbers for the SoCs are somewhat
confusing given that they are mostly similar and differ by only
one or two digits. Instead, use the public nomenclature for these
chips to avoid ambiguity and beautify the output.
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0018-lscpu-make-Apple-part-names-human-friendly.patch
Thomas Kaiser [Fri, 1 Jul 2022 12:16:49 +0000 (14:16 +0200)]
[PATCH 17/24] Fix formatting.
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0017-Fix-formatting.patch
ThomasKaiser [Fri, 1 Jul 2022 09:24:04 +0000 (11:24 +0200)]
[PATCH 16/24] Adding Apple core names, distinguish by SoC/SiP name
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0016-Adding-Apple-core-names-distinguish-by-SoC-SiP-name.patch
ThomasKaiser [Thu, 30 Jun 2022 05:32:40 +0000 (07:32 +0200)]
[PATCH 15/24] Add Makalu/Makalu-ELP (A715/X3)
Also fix names of A510/A710 cores
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0015-Add-Makalu-Makalu-ELP-A715-X3.patch
Jeremy Linton [Wed, 4 May 2022 17:30:34 +0000 (12:30 -0500)]
[PATCH 14/24] lscpu: Add Snapdragon parts
QC updated the kernel cputype.h to include the Kyro 4xx and 3xx Silver
part numbers's. Lets sync that commit and naming.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0014-lscpu-Add-Snapdragon-parts.patch
Karel Zak [Thu, 11 Aug 2022 11:14:18 +0000 (13:14 +0200)]
[PATCH 13/24] sfdisk: inform about failed fsync() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0013-sfdisk-inform-about-failed-fsync-coverity-scan.patch
Karel Zak [Thu, 11 Aug 2022 11:09:05 +0000 (13:09 +0200)]
[PATCH 12/24] libfdisk: (gpt) don't ignore fsync() errors
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0012-libfdisk-gpt-don-t-ignore-fsync-errors.patch
Karel Zak [Thu, 11 Aug 2022 11:04:58 +0000 (13:04 +0200)]
[PATCH 11/24] sfdisk: improve code readability for coverity scan
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0011-sfdisk-improve-code-readability-for-coverity-scan.patch
Karel Zak [Mon, 11 Jul 2022 12:02:30 +0000 (14:02 +0200)]
[PATCH 10/24] libfdisk: make scripts portable between different sector sizes
Fixes: https://github.com/util-linux/util-linux/issues/1744
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0010-libfdisk-make-scripts-portable-between-different-sec.patch
Karel Zak [Thu, 10 Nov 2022 08:24:23 +0000 (09:24 +0100)]
[PATCH 09/24] fdisk: make it more obvious that DOS means MBR
Fixes: https://github.com/util-linux/util-linux/issues/1890
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0009-fdisk-make-it-more-obvious-that-DOS-means-MBR.patch
Karel Zak [Mon, 24 Oct 2022 07:57:07 +0000 (09:57 +0200)]
[PATCH 08/24] fdisk: fix --output option parsing
Fixes: https://github.com/util-linux/util-linux/issues/1859
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
1022249
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0008-fdisk-fix-output-option-parsing.patch
Chris Down [Wed, 26 Oct 2022 14:47:36 +0000 (15:47 +0100)]
[PATCH 07/24] kill: Support mandating the presence of a userspace signal handler
In production we've had several incidents over the years where a process
has a signal handler registered for SIGHUP or one of the SIGUSR signals
which can be used to signal a request to reload configs, rotate log
files, and the like. While this may seem harmless enough, what we've
seen happen repeatedly is something like the following:
1. A process is using SIGHUP/SIGUSR[12] to request some
application-handled state change -- reloading configs, rotating a log
file, etc;
2. This kind of request is deprecated and removed, so the signal handler
is removed. However, a site where the signal might be sent from is
missed (often logrotate or a service manager);
3. Because the default disposition of these signals is terminal, sooner
or later these applications are going to be sent SIGHUP or similar
and end up unexpectedly killed.
I know for a fact that we're not the only organistion experiencing this:
in general, signal use is pretty tricky to reason about and safely
remove because of the fairly aggressive SIG_DFL behaviour for some
common signals, especially for SIGHUP which has a particularly ambiguous
meaning. Especially in a large, highly interconnected codebase,
reasoning about signal interactions between system configuration and
applications can be highly complex, and it's inevitable that on occasion
a callsite will be missed.
In some cases the right call to avoid this will be to migrate services
towards other forms of IPC for this purpose, but inevitably there will
be some services which must continue using signals, so we need a safe
way to support them.
This patch adds support for the -r/--require-handler flag, which checks
if a userspace handler is present for the signal being sent. If it is
not, the process will be skipped.
With this flag we can enforce that all SIGHUP reload cases and SIGUSR
equivalents use --require-handler. This effectively mitigates the case
we've seen time and time again where SIGHUP is used to rotate log files
or reload configs, but the sending site is mistakenly left present after
the removal of signal handler, resulting in unintended termination of
the process.
Signed-off-by: Chris Down <chris@chrisdown.name>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0007-kill-Support-mandating-the-presence-of-a-userspace-s.patch
Karel Zak [Thu, 11 Aug 2022 08:56:02 +0000 (10:56 +0200)]
[PATCH 06/24] lib/procfs: add function to parse /proc/#/stat
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0006-lib-procfs-add-function-to-parse-proc-stat.patch
Karel Zak [Mon, 19 Sep 2022 12:23:25 +0000 (14:23 +0200)]
[PATCH 05/24] lsblk: fix endless loop if device specified more than once
Fixes: https://github.com/util-linux/util-linux/issues/1814
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0005-lsblk-fix-endless-loop-if-device-specified-more-than.patch
Michael Trapp [Tue, 2 Aug 2022 12:16:43 +0000 (14:16 +0200)]
[PATCH 04/24] libuuid: check clock value from LIBUUID_CLOCK_FILE
The clock value from the LIBUUID_CLOCK_FILE must be checked in
case of an update of libuuid. If clock==CLOCK_SEQ_CONT it must
be set to a new value.
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0004-libuuid-check-clock-value-from-LIBUUID_CLOCK_FILE.patch
Karel Zak [Mon, 10 Oct 2022 07:37:51 +0000 (09:37 +0200)]
[PATCH 03/24] uuidd: fix random UUIDs
Commit
f27876f introduces copy & past bug and replaces
__uuid_generate_random() with __uuid_generate_time().
Fixes: https://github.com/util-linux/util-linux/issues/1837
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0003-uuidd-fix-random-UUIDs.patch
Michael Trapp [Mon, 20 Jun 2022 15:10:36 +0000 (17:10 +0200)]
[PATCH 02/24] libuuid: Implement continuous clock handling for time based UUIDs
In a uuidd setup, the daemon is a singleton and can maintain it's own
resources for time based UUID generation. This requires a dedicated
'clock sequence range' but does not need any further lock/update of
the LIBUUID_CLOCK_FILE from uuidd. The range of available clock values
is extended by a continuous handling of the clock updates - instead of
updating the value to the current timestamp, it is incremented by
the number of requested UUIDs.
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0002-libuuid-Implement-continuous-clock-handling-for-time.patch
Petr Štetiar [Thu, 22 Sep 2022 09:49:13 +0000 (11:49 +0200)]
[PATCH 01/24] lib/path: ul_path_cpuparse: fix parsing of empty sysfs files
Kernel 5.15 returns empty content for topology/thread_siblings on
aarch64 platform, which in conjunction of uninitialized `buf` memory
buffer results in the garbage:
(gdb) p buf
$14 = " @\377\367\177\000\000\000\275\000\347j\032\236"
This garbage is then being later consumed by underlying helper functions
like for example cpumask_parse() and this leads to the following crash
later:
in __libc_free (p=0x7ff7f67c00) at src/malloc/mallocng/free.c:105
in free (p=<optimized out>) at src/malloc/free.c:5
in add_cpuset_to_array (setsize=<optimized out>, set=<optimized out>, items=<optimized out>, ary=<optimized out>) at ../sys-utils/lscpu-topology.c:29
in cputype_read_topology (cxt=cxt@entry=0x7ff7fffe70, ct=0x4298a0) at ../sys-utils/lscpu-topology.c:153
in lscpu_read_topology (cxt=cxt@entry=0x7ff7fffe70) at ../sys-utils/lscpu-topology.c:629
in main (argc=1, argv=0x7ffffffdb8) at ../sys-utils/lscpu.c:1341
It looks like the problem is that current logic expects fgets() to set
errno on failure, but fgets() is not documented to do so and and neither
glibc nor musl set errno. So if errno was set to 0 before fgets() call,
the failure from fgets() is ignored and then invalid buffer is being
parsed.
Fixes: #1810
Suggested-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0001-lib-path-ul_path_cpuparse-fix-parsing-of-empty-sysfs.patch
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager
Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin
Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed
sha256 cannot be initialized on some archs / buildds.
Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)]
Use non-deprecated chown syntax
Closes: #1007139
Gbp-Pq: Topic debian
Gbp-Pq: Name chown-non-deprecated.patch
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests
Enable verbose tests and print content of failing tests output file.
Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system
Debian BTS #913049
Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch
Chris Hofstaedtler [Wed, 16 Nov 2022 10:32:57 +0000 (10:32 +0000)]
util-linux (2.38.1-2) unstable; urgency=medium
* Import upstream patches
* fsck: Processes may kill other processes.
* lscpu: Add Kryo 3XX Gold core
* lscpu: Even more Arm part numbers
* Remove closing braces in Apple cores names
* lscpu: (arm) don't use space in names
* lscpu: add missing Apple parts
* lscpu: make Apple part names human-friendly
* Fix formatting.
* Adding Apple core names, distinguish by SoC/SiP name
* Add Makalu/Makalu-ELP (A715/X3)
* lscpu: Add Snapdragon parts
* sfdisk: inform about failed fsync() [coverity scan]
* libfdisk: (gpt) don't ignore fsync() errors
* sfdisk: improve code readability for coverity scan
* libfdisk: make scripts portable between different sector sizes
* fdisk: make it more obvious that DOS means MBR
* fdisk: fix --output option parsing
* kill: Support mandating the presence of a userspace signal handler
* lib/procfs: add function to parse /proc/#/stat
* lsblk: fix endless loop if device specified more than once
* libuuid: check clock value from LIBUUID_CLOCK_FILE
* uuidd: fix random UUIDs
* libuuid: Implement continuous clock handling for time based UUIDs
* lib/path: ul_path_cpuparse: fix parsing of empty sysfs files
* libblkid: ntfs: avoid UB in signed shift
* libblkid: iso9660: allocate enough space for UTF16 decoding
* Make /var/lib/libuuid writable by uuidd (Closes: #
1021657)
* Add new __uuid_generate_time_cont@UUIDD_PRIVATE symbol
[dgit import unpatched util-linux 2.38.1-2]
Chris Hofstaedtler [Wed, 16 Nov 2022 10:32:57 +0000 (10:32 +0000)]
Import util-linux_2.38.1-2.debian.tar.xz
[dgit import tarball util-linux 2.38.1-2 util-linux_2.38.1-2.debian.tar.xz]
Matthew Vernon [Sat, 8 Oct 2022 13:18:04 +0000 (14:18 +0100)]
changelog for 2.38.1-1.1
Matthew Vernon [Sat, 8 Oct 2022 13:15:23 +0000 (14:15 +0100)]
Restore /usr/bin/rename.ul per TC decision in #
1003653
This is basically a reversion of
1c7dc9a2 which is how they were
removed (but that didn't cleanly revert).
Signed-off-by: Matthew Vernon <matthew@debian.org>
Chris Hofstaedtler [Thu, 4 Aug 2022 16:18:17 +0000 (17:18 +0100)]
Import util-linux_2.38.1.orig.tar.xz
[dgit import orig util-linux_2.38.1.orig.tar.xz]
Chris Hofstaedtler [Thu, 4 Aug 2022 16:18:17 +0000 (17:18 +0100)]
Record util-linux (2.38.1-1) in archive suite sid
Record that
2.38.1-1 Import of source package
should be treated as descended from
2.32.1-0.1 dgit client's archive history view
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager
Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin
Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed
sha256 cannot be initialized on some archs / buildds.
Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)]
Use non-deprecated chown syntax
Closes: #1007139
Gbp-Pq: Topic debian
Gbp-Pq: Name chown-non-deprecated.patch
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests
Enable verbose tests and print content of failing tests output file.
Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system
Debian BTS #913049
Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch
Chris Hofstaedtler [Thu, 4 Aug 2022 16:18:17 +0000 (17:18 +0100)]
util-linux (2.38.1-1) unstable; urgency=medium
* New upstream release.
* Rebase patches, drop upstream applied patches
* uuid-runtime: Quiet adduser warnings.
Thanks to Diederik de Haas <didi.debian@cknow.org> (Closes: #
1016372)
* d/README.source: fix tarball name in example
[dgit import unpatched util-linux 2.38.1-1]
Chris Hofstaedtler [Thu, 4 Aug 2022 16:18:17 +0000 (17:18 +0100)]
Import util-linux_2.38.1-1.debian.tar.xz
[dgit import tarball util-linux 2.38.1-1 util-linux_2.38.1-1.debian.tar.xz]
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests
Enable verbose tests and print content of failing tests output file.
Gbp-Pq: Name verbose-tests.patch
Andreas Henriksson [Sun, 12 Aug 2018 05:11:02 +0000 (06:11 +0100)]
util-linux (2.32.1-0.1) unstable; urgency=medium
[ Kapil Hari Paranjape ]
* Mention the su-l pam config keyinit revoke in NEWS (Closes: #905710)
[ Andreas Henriksson ]
* Mention DISPLAY and XAUTHORITY in util-linux.NEWS (Closes: #905409)
* New upstream release.
* Drop fix-hurd.patch from upstream, now part of release
[dgit import unpatched util-linux 2.32.1-0.1]
Andreas Henriksson [Sun, 12 Aug 2018 05:11:02 +0000 (06:11 +0100)]
Import util-linux_2.32.1.orig.tar.xz
[dgit import orig util-linux_2.32.1.orig.tar.xz]
Andreas Henriksson [Sun, 12 Aug 2018 05:11:02 +0000 (06:11 +0100)]
Import util-linux_2.32.1-0.1.debian.tar.xz
[dgit import tarball util-linux 2.32.1-0.1 util-linux_2.32.1-0.1.debian.tar.xz]